//
//  AllInclude.h
//  XRmenu
//
//  Created by shengchao yang on 11-11-23.
//  Copyright 2011年 foxhis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import <AVFoundation/AVFoundation.h>

#import "XRmenuPublic.h"
#import "XRmenuFileManage.h"
#import "XRmenuCoreData.h"
#import "singleton.h"
#import "XRmenuError.h"
#import "JSON.h"
//自定义类
#import "XRRateView.h"
#import "UFMultiLineButton.h"
// 所有CoreData 类
#import "Menu.h"
#import "Catalogs.h"
#import "Product.h"
#import "Dish.h"
#import "DishLanguageEx.h"
#import "Cigarette.h"
#import "SeasonDish.h"
#import "Drink.h"
#import "SetMeal.h"
#import "ProductTag.h"
#import "SpecCode.h"
#import "SaleOrder.h"
#import "SaleOrderProduct.h"
#import "TableBox.h"

//XRmenu
#import "PluCigarete.h"
#import "PluDrink.h"
#import "PluFood.h"
#import "PluMenu.h"
#import "PluPlu.h"
#import "PluPluTag.h"
#import "PluSort.h"
#import "PluSpecialSort.h"
#import "PluSpecialCode.h"
#import "DishOrder.h"
#import "PluTable.h"

#import "NSString+Additions.h"
#import "NSDate+Helper.h"
//
#import "Business.h"

// 扩展类方法
#import "NSDictionary+Config.h"
#import "UIView+Common.h"

// 第三方静态库
#import <TapkuLibrary/TapkuLibrary.h>
#import <FTUtils/FTAnimation.h>
#import "RegexKitLite.h"

// 基本枚举
typedef enum{
	ViewOfOEM = 501,
	ViewOfRI,
	ViewOfWelcome,
	ViewOfReferec,
	ViewOfCommend,
	ViewOfProduct
} ViewStep;




// 所有消息钩子名定义
//工具条
#define kMessage_System_Change_Language @"iMene2_Message_Change_Language"
#define kMessage_TopBar_ActiveAnimation	@"XRmenu_Message_TopBar_ActiveAnimation"
#define kMessage_TopBar_CloseSubView	@"XRmenu_Message_TopBar_CloseSubView"
#define kMessage_TopBar_SearchList_Selected @"kMessage_TopBar_SearchList_Selected"
#define kMessage_TopBar_SearchTextChanged	@"kMessage_TopBar_SearchTextChanged"
#define kMessage_TopBar_The3rd_Controller @"kMessage_TopBar_The3rd_Controller"
#define kMessage_TopBar_cleanOperState @"kMessage_TopBar_cleanOperState"
#define kMessage_TopBar_Search @"kMessage_TopBar_Search"
//点菜数量改变通知
#define kMessage_TopBar_orderedChange @"kMessage_TopBar_orderedChange"
#define kMessage_Photo_orderedChange @"kMessage_Photo_orderedChange"
#define kMessage_Album_orderedChange @"kMessage_Album_orderedChange"
#define kMessage_Album_clearordered @"kMessage_Album_clearordered"
#define kMessage_Album_CloseOperView @"kMessage_Album_CloseOperView"

//我的点单消息注册
#define kMessage_MyOrder_Refresh @"kMessage_MyOrder_Refresh"
#define kMessage_MyOrder_RemoveItem @"kMessage_MyOrder_RemoveItem"
#define kMessage_MyOrder_RemoveAllItem @"kMessage_MyOrder_RemoveAllItem"
#define kMessage_MyOrder_PopItem @"kMessage_MyOrder_PopItem"

#define kMessage_AudioPlayer_Stop @"kMessage_AudioPlayer_Stop"

#define kMessage_DishMain_SwitchTopBarFront @"kMessage_DishMain_SwitchTopBarFront"
#define kMessage_DishMain_SwitchSortTag @"kMessage_DishMain_SwitchSortTag"
#define kMessage_DishMain_RefreshAlumbView @"kMessage_DishMain_RefreshAlumbView"

//主界面控制跳转
#define kMessage_Dish_AlbumToPhoto	@"kMessage_Dish_AlbumToPhoto"
#define kMessage_Dish_CommandToPhoto	@"kMessage_Dish_CommandToPhoto"
#define kMessage_Dish_RecommandToAlbum	@"kMessage_Dish_RecommandToAlbum"
#define kMessage_Dish_PhotoToAlbum	@"kMessage_Dish_PhotoToAlbum"
#define kMessage_Dish_ClosePop	@"kMessage_Dish_ClosePop"
#define kMessage_Dish_changeRelateDish	@"kMessage_Dish_changeRelateDish"
#define kMessage_Main_Clean	@"kMessage_Main_Clean"

//XRmenu 界面MainView控制跳转
#define kMessage_MainView_MyOrderNumberChanged @"kMessage_MainView_MyOrderNumberChanged"
#define kMessage_MainView_SelectMainViewPluPlu @"kMessage_MainView_SelectMainViewPluPlu"
#define kMessage_MainView_SelectNextPluSort @"kMessage_MainView_SelectNextPluSort"

//XRmenu 界面RootView控制跳转
#define kMessage_RootView_PhotoPopoverViewDisplay @"kMessage_RootView_PhotoPopoverViewDisplay"
#define kMessage_RootView_PhotoPopoverViewDisappear @"kMessage_RootView_PhotoPopoverViewDisappear"
#define kMessage_RootView_ChangeStep @"kMessage_RootView_ChangeStep"
#define kMessage_RootView_MyOrderViewDisplay @"kMessage_RootView_MyOrderViewDisplay"
#define kMessage_RootView_MyOrderViewDisappear @"kMessage_RootView_MyOrderViewDisappear"
#define kMessage_RootView_PluNotesViewDisplay @"kMessage_RootView_PluNotesViewDisplay"
#define kMessage_RootView_PluNotesViewDisappear @"kMessage_RootView_PluNotesViewDisappear"
#define kMessage_RootView_SendOrderViewDisplay @"kMessage_RootView_SendOrderViewDisplay"
#define kMessage_RootView_SendOrderViewDisappear @"kMessage_RootView_SendOrderViewDisappear"

//XRmenu界面DisplayModeView
#define kMessage_DishplayModeView_UpdateData @"kMessage_DishplayModeView_UpdateData"

//XRmenu界面CommendTable
#define kMessage_CommendTable_MyOrderNumberChanged @"kMessage_CommendTable_MyOrderNumberChanged"

//XRmenu界面MyOrderView
#define kMessage_MyOrderView_ReloadTableViewData @"kMessage_MyOrderView_ReloadTableViewData"

// 所有ViewTag定义
#define kTagOfPopBox 10

#define kTagOfFilterTips 1900

// 所有预定义变量
#define kCurrentAppVersion @"XRmenu V1.0"
#define kCurrentDbNameSurfix @"1_0"

#define needCheckPermission NO						// 是否检查Ipad设备授权
#define kInitialDB NO                               // 是否初始化数据库，仅在数据结构调整后更名时用YES, 默认NO
#define kErrorDomain @"XRmenu 1"

#define DishTestColor2 //测试时画背景颜色用
#define quickDebugModel2

#define isAdHocVersion NO
#define math_month (60*60*24*30*1.0)
//#define math_month (60*1.0)
